/**
 * Author: Daniel Michalski
 * Date: 05.03.13
 */


class Gen<T> {
    T ob;

    public Gen(T ob) {
        this.ob = ob;
    }

    public T getOb() {
        return ob;
    }
}


class Gen2<T, V> extends Gen<T> {
    V ob2;

    public Gen2(T ob, V o2) {
        super(ob);
        ob2 = o2;
    }

    public V getOb2() {
        return ob2;
    }
}


public class HierDemo {
    public static void main(String[] args) {
        Gen2<String, Integer> x =
                new Gen2<String, Integer>("Wartość: ", 99);

        System.out.print(x.getOb());
        System.out.println(x.getOb2());

    }
}
